<template>
  <div class="side-bar-item">
    <span class="iconfont side-bar-item__icon" :class="iconfont" v-show="!!iconfont"></span>
    <p>{{ name }}</p>
  </div>
</template>

<script>
export default {
  props: {
    iconfont: {
      type: String,
      default: ''
    },

    name: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped>
.side-bar-item {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
}

.side-bar-item__icon {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  display: inline-block;
  font-size: 18px;
  text-align: center;
}

.side-bar-item:hover {
  cursor: default;
}
</style>